package com.fh.db.base;

import com.fh.db.DbSource;
import com.fh.db.SqlSet;

/**
 * @Author qiujunda
 * @Date 16/05/2020
 * @Description
 */
public abstract class BaseDbSource implements DbSource {
    private String url;
    private String userName;
    private String password;
    private String driver;
    private String dbTypeCode;
    private SqlSet sqlSet;

    @Override
    public void initSource(String dbTypeCode,String url, String userName, String password, String driverName) {
        this.dbTypeCode=dbTypeCode;
        this.url=url;
        this.userName=userName;
        this.password=password;
        this.driver=driverName;
    }
    @Override
    public SqlSet getSqlSet() {
        return sqlSet;
    }

    public void setSqlSet(SqlSet sqlSet) {
        this.sqlSet = sqlSet;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getDriver() {
        return driver;
    }

    public void setDriver(String driver) {
        this.driver = driver;
    }
}
